import QtQuick 2.5
import QtQuick.Controls 2.1
import QtGraphicalEffects 1.0
import ".."

MyRectangle
{
    id: mySecondFatButton
    height: 80
    width: 80
    color: enabled ? "white" : Common.colorInvalid
    property alias name: title.text
    property alias source: icon.source
    signal clicked()
    scale: mouseArea.pressed ? 0.95 : 1
    Image
    {
        id: icon
        anchors.top: parent.top
        anchors.topMargin: 10
        anchors.horizontalCenter: parent.horizontalCenter
    }
    Text
    {
        id: title
        font.family: Common.fontMain
        font.pixelSize: 14
        color: Common.colorText
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 6
    }
    MouseArea
    {
        id: mouseArea
        anchors.fill: parent
        onClicked:
        {
            console.log(name)
            GET_UAC.playBeep()
            mySecondFatButton.clicked()
        }
    }
}
